
<script type="text/javascript" charset="utf-8">
	var fcid = document.getElementById('<%= "fc_"+@flashcard.id.to_s %>');
	fcid.onclick = null;
</script>

  <% remote_form_for([@fset,@flashcard]) do |f| %>
  <div class="double">
    <div class="front side"><%= f.text_area :question, {:rows => "6", :cols => "25"} %></div>
    <div class="back side"><%= f.text_area :answer, {:rows => "6", :cols => "25"} %></div>
  </div>
  <div class="controls">
    <%= f.submit "", { :class => "update" } %>
    <%= link_to_remote '', :url => {:action => "delete_ajax", :id => @flashcard.id, :fset=>@fset.id}, :html => {:class => "delete", :onclick=>'document.getElementById(\'fc_'+@flashcard.id.to_s+'\').style.display="none"'} %>
  </div>
  <% end %>

